divide by zero error python exception handling

97

divide by zero error python exception handling -

try:
    print 1/0
except ZeroDivisionError:
    print "You can't divide by zero!"

Comments

Submit
0 Comments